<%@ page contentType="text/html; charset=utf-8"  buffer="none" %>
<%@ page import="com.puda.mteaf.core.util.*"%>
<%@ page import="sun.jdbc.rowset.*"%>
<%@ page import="java.util.*"%>
<style>
  .syzh_c_title{
  	text-align: left;
	padding: 10px 0;
	font-size: 16px;
  }
  .syzh_c_item{
	text-align: left;
	margin-bottom: 15px;
  }
  .syzh_c_sub1{
  	padding: 5px;
  }
  .syzh_c_sub1 .item_t{
    display: inline-block;
    width: 100px;
  }
  
  .syzh_c_sub1 .item_t1{
    display: inline-block;
    width: 100px;
  }
  .syzh_c_sub1 .item_c{
    margin-right: 20px;
  }
  .syzh_c_sub1 .item_c input{
		width: 100px;
  }
  .syzh_c_sub1 .item_c select{
		width: 100px;
  }
  
</style>
<div ng-app style="margin-top:50px;">
  <input type="hidden" class="tyh_input" >
  
  <div class="syzh_c_sub1">
    <span class="item_t1" style="margin-right: 50px"><input type="button" id="ryb_btn_noChangeLevyApply" value="测试连接"></span>
  </div>
  <!-- <div  class="syzh_c_sub1">
    <span class="item_t1" style="margin-right: 50px"><input type="button" id="tyh_btn_start" value="填数"></span>
  </div> -->
</div>
<script type="text/javascript">
  var url_list = {
    //1.人员新增查询
    'searchPersonUrl':{'url':'http://public.hrss.tj.gov.cn/ehrss-si-enterprise/api/simis/persons?certificateType=01','method':'get'},
  };  

  //执行请求
  function doPostRequest(url,data,sucess){
    url += "?cookie_pawj_medical_user_id=" + $.cookie('cookie_pawj_medical_user_id');
    $.ajax({
      url: url,
      method: "POST",
      data: data,
      headers:{
        "Content-Type":"application/x-www-form-urlencoded",
        "Referer":url
      },
      beforeSend: function(){
      },
      complete: function(){
      },
      success:function(data){
        sucess(data);
      },
      error:function(data) {
      }
    });
  }

  $("#ryb_btn_noChangeLevyApply1").bind("click",function(){
    //查询患者数据
    var url = 'https://gp.pinganwj.com/i/patient/pt_base_clinic_info';
    var data = {
      'empiId':'033285c37cda41d3be49018ce4003587',
      'clinicId':'048cfceb-4e27-4d97-9c58-18cc1a26400e'
    }
    var respSuccess = function(resp){
      console.log(1111,resp);
      //TODo

    }
    doPostRequest(url, data, respSuccess);

    //查询收费记录
    //doPostRequest('https://gp.pinganwj.com/i/charge/hasInvoice',{"sysType":"B"})
  });
  
  $("#ryb_btn_noChangeLevyApply").bind("click",function(){
    //查询患者数据
     var url = 'https://gp.pinganwj.com/i/apptSchedule/getApptSchedule';
    var data = {
      'department_id':'033285c37cda41d3be49018ce4003587',
      'query_type':'DEPT',
      'start_date':'2018-10-18',
    }
    var respSuccess = function(resp){
      console.log(1111,resp);
      //TODo

    }
    doPostRequest(url, data, respSuccess);

    //查询收费记录
    //doPostRequest('https://gp.pinganwj.com/i/charge/hasInvoice',{"sysType":"B"})
  });

</script>